package com.funsport.dto.response;

import com.funsport.entity.Role;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 后台管理用户响应
 */
@Data
@Schema(description = "后台管理用户响应")
public class AdminUserResponse {
    
    @Schema(description = "用户ID")
    private Long id;
    
    @Schema(description = "昵称/用户名")
    private String nickname;
    
    @Schema(description = "手机号")
    private String phone;
    
    @Schema(description = "邮箱")
    private String email;
    
    @Schema(description = "头像URL")
    private String avatar;
    
    @Schema(description = "状态")
    private String status;
    
    @Schema(description = "角色列表")
    private List<Role> roles;
    
    @Schema(description = "角色代码列表")
    private List<String> roleCodes;
    
    @Schema(description = "角色名称列表")
    private List<String> roleNames;
    
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;
    
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginAt;
    
    @Schema(description = "备注")
    private String remark;
}

